package org.ne.banksys.service;

import com.github.pagehelper.Page;
import org.ne.banksys.entity.Trade;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

/**
 * @author wey
 * @date 2025/6/13 下午10:40 06
 **/
public interface TradeService {
    List<Trade> getAll();
    void add(Trade trade);
    void delete(Long tradeId);
    void update(Trade trade);
    Trade getById(Long tradeId);

    Page<Trade> getAllTrades(Integer page, Integer size);


    List<Trade> filterByTradeMoney(
            BigDecimal minMoney,
            BigDecimal maxMoney
    );
    List<Trade> filterByTradeDate(
            Timestamp startDate,
            Timestamp endDate
    );

    List<Trade> filterByDateAndMoney(
            BigDecimal minMoney,
            BigDecimal maxMoney,
            Timestamp startDate,
            Timestamp endDate
    );
}
